package com.littlebee.storychild.common;


import com.littlebee.storychild.common.json.RestProperty;
import com.littlebee.storychild.common.json.RestClass;


/**
 * author: xiejia
 * created at 2016/8/15 08:53
 * description:接口返回数据实体
 */
@RestClass(name = "BaseResponse")
public class BaseResponse<T> {
    @RestProperty(name = "rc")
    private int code;
    @RestProperty(name = "rd")
    private String msg;
    @RestProperty(name = "data")
    private String data;
    private Page pagination;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getData() {

        return data ==null?"":data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Page getPagination() {
        return pagination;
    }

    public void setPagination(Page pagination) {
        this.pagination = pagination;
    }

}